]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Fade the dialog background
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 5 Jun 2020 03:31:13 +0000 (00:31 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 9 Jun 2020 19:14:30 +0000 (16:14 -0300)
As a last step towards the better app grid, add a semi-transparent
black background to the folder dialog.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301

js/ui/appDisplay.js

index 3dd62dfc5e5240c18778dab0e69aa8c20f64f4be..5eb0b291a96d62b599ed74039261bc6cc6604146 100644 (file)
@@ -1621,6 +1621,11 @@ var AppFolderDialog = GObject.registerClass({
             opacity: 0,
         });
 
+        this.ease({
+            background_color: Clutter.Color.from_pixel(0x000000cc),
+            duration: FOLDER_DIALOG_ANIMATION_TIME,
+            mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+        });
         this.child.ease({
             translation_x: 0,
             translation_y: 0,
@@ -1653,6 +1658,12 @@ var AppFolderDialog = GObject.registerClass({
         let [dialogX, dialogY] =
             this.child.get_transformed_position();
 
+        this.ease({
+            background_color: Clutter.Color.from_pixel(0x00000000),
+            duration: FOLDER_DIALOG_ANIMATION_TIME,
+            mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+        });
+
         this.child.ease({
             translation_x: sourceX - dialogX,
             translation_y: sourceY - dialogY,